package com.rpp.controller;

import com.rpp.bean.Person;
import com.rpp.service.INeo4jPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description
 * @Author peng
 * @Date 2020/10/13 4:31 下午
 */
@RestController
public class PersonController {

    @Autowired
    INeo4jPersonService personService;

    @GetMapping("/person/getAll")
    public List<Person> getAllPerson() {
        return personService.getAll();
    }
}
